package com.smgeek.gkrpc.example;

import com.smgeek.gkrpc.client.RpcClient;

/**
 * @ClassName Client
 * @Author wuyuyang
 * @Date 2022/1/7 15:02
 * @Description Client
 * @Version 1.0
 */
public class Client {
    public static void main(String[] args) {
        RpcClient rpcClient = new RpcClient();
        CalcInterface proxy = rpcClient.getProxy(CalcInterface.class);
        int add = proxy.add(1, 2);

        System.out.println(add);

    }
}
